home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / programming / amiga / rexxecute / programmers / test.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-11  |  1.9 KB  |  45 lines

  1. /**********************************************************************/
  2. /*                    Test.c used to test RexecuteIF.c                    */
  3. /*--------------------------------------------------------------------*/
  4. /*                            13 Jun 1994                             */
  5. /*--------------------------------------------------------------------*/
  6. /**********************************************************************/
  7.  
  8.  
  9. #include <all.h>
  10. #include <mylib.h>
  11. #include "RexecuteSupport.h"
  12.  
  13.  
  14. extern __chip char Marquis;    // This is important!
  15.  
  16. /**********************************************************************/
  17. /* Sorry there aint a lot to this little demo, but I'm a lazy sod, I  */
  18. /* rely on the auto-initialising of the libraries, and a VAST include */
  19. /* file, (Can't be bothered figurin' out what I need to include so it */
  20. /*  tends to be almost everything!!) I may be lazy, But at least I'm  */
  21. /*                               HONEST                               */
  22. /**********************************************************************/
  23.  
  24. void
  25.  main(int argc,char *argv[])
  26. {
  27.     if(SendMacro( &Marquis, "Test Prog", FALSE, NULL ))
  28.         printf("finished sending\n");
  29.     else
  30.         printf("Unable to start Macro\n");
  31.     cleanup();    // NOT required as macro was syncronous
  32.             // but here for completeness!
  33. }
  34.  
  35. /**********************************************************************/
  36. /*  You could simply Write it out to a file first, by using something */
  37. /* like:                                                              */
  38. /*                Write(outfile, &Marquis, Marquislen)                */
  39. /* Marquislen is defined within the ArCo object module and should     */
  40. /* be declared similar to char Marquis but as the following           */
  41. /*                   extern __chip long Marquislen                    */
  42. /* You could then call on RX to execute it, But thats REAL LAZY!      */
  43. /**********************************************************************/
  44.  
  45.